<script setup lang="ts">
import { readonly } from 'vue';


const state:{
  name:string
} =readonly({
  name:'张三'
})

</script>

<template>
  <h1>{{ state.name }}</h1>
</template>